<?php
import slim3.service.ServiceFactory;

	$factory = ServiceFactory::getInstance();
	$service = $factory->getManager()->getDaoService();

	$id = $_GET["id"];
	$service->delMessage($id);

	header("HTTP/1.1 301 Moved Permanently");
	header("Location: /index.php");
?>